#自定义一个工具类实现归属地查询
import requests
import json
def query_plate(str_no):
    url="https://www.simoniu.com/commons/chinaplate/"+str_no
    rs=requests.get(url)
    #字符串
    json_str=rs.text
    json_obj=json.loads(json_str)
    return json_obj["data"]
    #print(rs.text)



if __name__ == '__main__':
    print(query_plate("川F30HB8"))